<template>
  <view>
	<u-navbar :isFixed="true" :title="name" :borderBottom="false"></u-navbar>
	<view class="uParse">
		<block v-for="(item,index) in agreement" :key="index">
			<block v-if="type==item.type">
				<uParse :content="item.content"></uParse>
			</block>
		</block>
	</view>
  </view>
</template>

<script>
  var _this;
  export default {
    data() {
      return {
		type:0,
		agreement:[],
		name:"",
      }
    },
    onLoad(e) {
		_this = this
		_this.name = e.name
		_this.type=e.type
		_this.$api.get("setup", {}).then(data => {
			_this.agreement=data.agreement
		});
    }
  }
</script>

<style lang="scss" scoped>

</style>
